#pragma once

#ifndef WEBTABBUTTON_H
#define WEBTABBUTTON_H

#include <QtCore>
#include <QtGui>
#include <QtWidgets>

namespace Ui {
class WebTabButton;
}

class WebTabButton : public QWidget
{
    Q_OBJECT
public:
    explicit WebTabButton(QWidget *parent = nullptr);
    ~WebTabButton();

public:
    virtual QSize sizeHint() const;

public:
    void setTabWidget(QTabWidget* val) { m_tabWidget = val; }
    QTabWidget * getTabWidget() { return m_tabWidget; }

    QWidget* getNewWidget();
    QWidget* getTitleWidget();
    QWidget* getMenuWidget();
    QWidget* getMinWidget();
    QWidget* getMaxWidget();
    QWidget* getCloseWidget();

protected:
    void init();

protected:
    QTabWidget* m_tabWidget;

signals:
    void btNewClicked(bool checked = false);
    void btMenuClicked(bool checked = false);
    void btMinClicked(bool checked = false);
    void btMaxClicked(bool checked = false);
    void btCloseClicked(bool checked = false);

private:
    Ui::WebTabButton *ui;
};

#endif // WEBTABBUTTON_H
